package two;

public class AddExpression extends AbstractExpression {
    public AddExpression(int num1, int num2) {
        super(num1, num2);
    }

    @Override
    public int calculate() {
        return num1 + num2;
    }

    @Override
    public String toString() {
        return num1 + " + " + num2 + " = " + result;
    }
}